package com.java1412.controller;

import com.java1412.entity.HouseType;
import com.java1412.service.HouseTypeService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author java1412
 * @since 2025-04-30 13:42
 */
@RestController
@RequestMapping(value = "/houseType")
@CrossOrigin    // 允许跨域
public class HouseTypeController {
    @Resource
    private HouseTypeService houseTypeService;

    @GetMapping
    public Object findAll() {
        return houseTypeService.findAll();
    }
}
